package fr.cnam.projetSiw.client.core;

import fr.cnam.projetSiw.shared.Artist;
import fr.cnam.projetSiw.shared.MusicEvent;

public class ContextKeeper
{

	private static ContextKeeper INSTANCE = null;
	private MusicEvent event = null;
	private Artist artist = null;
	private String genre = "Pop_music";

	private ContextKeeper()
	{
	}

	public static ContextKeeper getInstance()
	{
		if (INSTANCE == null)
		{
			INSTANCE = new ContextKeeper();
		}

		return INSTANCE;
	}


	public MusicEvent getEvent()
	{
		return event;
	}

	public void setEvent(MusicEvent event)
	{
		this.event = event;
	}

	public Artist getArtist()
	{
		return artist;
	}

	public void setArtist(Artist artist)
	{
		this.artist = artist;
	}

	public String getGenre() {
		return genre;
	}

	public void setGenre(String genre) {
		this.genre = genre;
	}
}
